#pragma once

typedef BSTR(__stdcall *ESGETLOGDIR)();
typedef BOOL(__stdcall *ESSVRCONNECT)(LPSTR szUserId, LPSTR szPasswd, HWND ParentHwnd);
typedef BOOL(__stdcall *ESSVRSEND)(int nTrCode, LPSTR szNextKey, LPSTR szUserIdx, const void* lpBuf, int nBufLen);
typedef BOOL(__stdcall *ESSETAUTOREQUEST)(int nTrCode, LPSTR szKey);
typedef BOOL(__stdcall *ESRESETAUTOREQUEST)(int nTrCode, LPSTR szKey);
typedef BOOL(__stdcall *ESRESETALLAUTOREQUEST)(int nTrCode);
typedef BOOL(__stdcall *ESCLEARAUTOREQUEST)();
typedef BOOL(__stdcall *ESSVRDISCONNECT)(HWND ParentHwnd);
typedef BOOL(__stdcall *ESCLOSEEXPERT)(HWND ParentHwnd);
typedef BSTR(__stdcall *ESGETALLACCOUNT)(int &DataCnt);
typedef BSTR(__stdcall *ESGETJONGMAST)(int &DataCnt, int nSection);
typedef BSTR(__stdcall *ESGETJONGMASTBYFULL)(LPSTR szFullCode, int &RcvBLen);
typedef BSTR(__stdcall *ESGETASSETDATA)(int &DataCnt);
typedef BSTR(__stdcall *ESGETCODEINDEXBYFULL)(LPSTR szFullCode, int &RcvLen);
typedef BSTR(__stdcall *ESGETCODEINDEXBYSHORT)(LPSTR szShortCode, int &RcvLen);
typedef BSTR(__stdcall *ESGETSHORTCODEBYFULL)(LPSTR szFullCode, int &RcvLen);
typedef BSTR(__stdcall *ESGETFULLCODEBYSHORT)(LPSTR szShortCode, int &RcvLen);
